package com.samsonsoft.struts.action;

import org.apache.logging.log4j.Logger;

import com.opensymphony.xwork2.Action;
import com.samsonsoft.struts.service.ActorFinderService;


public class ActorAction implements Action{

	private String actorSite;
	private String country;
	
	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}
	

	
	public String getActorSite() {
		return actorSite;
	}

	public void setActorSite(String actorSite) {
		this.actorSite = actorSite;
	}
	
	public String execute(){
		
		ActorFinderService actorFinderService = new ActorFinderService();
		
		actorSite = actorFinderService.getActorsSite(country);
		
		return "success";
	}
	
	

}
